﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using BaccaratRally.DataKernel.Entity;
using BaccaratRally.DataKernel.Service;

namespace BaccaratRally.Service.Api
{
    public partial class Setting : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = Request.QueryString["UserName"];
            string setting = Request.QueryString["Setting"];

            UserService us = ServiceFactory.CreateService<UserService>();
            us.UpdateSetting(username, setting);

            Response.Write("OK");
            Response.End();
        }
    }
}